package sctu.edu.java.year2016.team07.nieying.practice.Jsoup;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

/**
 * Created by Administrator on 2016/6/13 0013.
 */
public class Main {
    public static void main(){
        try {
            Document document= Jsoup.connect("https://www.baidu.com").get();
            Elements elements=document.select("head");
            System.out.println(elements.get(0));
        //    System.out.println(document.body());
        }catch (Exception e){
            e.printStackTrace();
        }


    }

}
